package com.hafu.service;
import com.hafu.dao.GysInfoDao;
import com.hafu.model.GysInfo;
import java.util.ArrayList;

public class GysInfoService {
    private final GysInfoDao gysInfoDao = new GysInfoDao();

    public boolean addGysInfo(GysInfo gys) {
        return gysInfoDao.addGysInfo(gys);
    }

    public boolean deleteGysInfo(int id) {
        return gysInfoDao.deleteGysInfo(id);
    }

    public ArrayList<GysInfo> getGysInfoByName(GysInfo gys) {
        return gysInfoDao.getGysInfoByName(gys);
    }

    public Boolean updateGysInfo(GysInfo gys) {
        return gysInfoDao.updateGysInfo(gys);
    }
}
